<template>
  <div class="allevaluate">
    <div class="message fz14">
      <span v-for="(item, index) in message" :key="index">{{ item }}</span>
    </div>
    <div class="feedback">
      <div class="img" v-for="(item, index) in 12" :key="index">
        <img @click="show = true" src="@/assets/矩形备份.png" />
      </div>
    </div>
    <van-overlay :show="show" @click="show = false">
      <div class="wrapper" @click.stop>
        <div class="block">
          <img src="@/assets/矩形备份.png" />
        </div>
      </div>
    </van-overlay>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
      message: [
        '全部(345)',
        '热销产品(12)',
        '销量很快(34)',
        '用户反馈好(34)',
        '用户反馈好(34)',
      ],
      img: ['../../assets/banner.png'],
    }
  },
}
</script>

<style lang="less" scoped>
.allevaluate {
  //   评论
  .message {
    padding: 16px 12px 0;
    padding-right: 0;
    height: 100px; //高100
    color: #622ccc;
    margin: 12px 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    span {
      padding: 4px 16px;
      background: #f7f6fb;
      border-radius: 14px;
      margin-bottom: 12px;
      margin-right: 12px;
    }
  }
  //   反图
  .feedback {
    // background-color: #ff3040;
    padding: 12px;
    padding-top: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    .img {
      width: 115px;
      height: 115px;
      margin-right: 3px;
      margin-bottom: 3px;
      &:nth-child(3n) {
        margin-right: 0px;
      }
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #000;
    .block {
      width: 375px;
      height: 375px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
